package xyz.kongbai121.modules.numcount.service.impl;

import org.springframework.stereotype.Service;
import java.io.Serializable;
import java.util.Collection;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import xyz.kongbai121.common.utils.PageUtils;
import xyz.kongbai121.common.utils.Query;

import xyz.kongbai121.modules.numcount.dao.WechatUserDao;
import xyz.kongbai121.modules.numcount.entity.WechatUserEntity;
import xyz.kongbai121.modules.numcount.service.WechatUserService;


@Service("wechatUserService")
public class WechatUserServiceImpl extends ServiceImpl<WechatUserDao, WechatUserEntity> implements WechatUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        LambdaQueryWrapper<WechatUserEntity> wrapper = new LambdaQueryWrapper<>();

        IPage<WechatUserEntity> page = this.page(
                new Query<WechatUserEntity>().getPage(params),
                wrapper
        );

        return new PageUtils(page);
    }

    @Override
    public WechatUserEntity getById(Serializable id) {
        return super.getById(id);
    }

    @Override
    public boolean save(WechatUserEntity entity) {
        return super.save(entity);
    }

    @Override
    public boolean updateById(WechatUserEntity entity) {
        return super.updateById(entity);
    }

    @Override
    public boolean removeByIds(Collection<? extends Serializable> idList) {
        return super.removeByIds(idList);
    }

}